<template>
  <div>
    <h1>{{msg}}</h1>
    <button @click="fanzhuan">翻转</button>
  </div>
</template>

<script>
export default {
  name: 'VuecliDomeApp',

  data() {
    return {
      msg:"HELLO,WORD"
    };
  },

 
  methods: {
    fanzhuan(){
      this.msg=this.msg.split("").reverse().join("")
    }
  },
};
</script>

<style lang="scss" scoped>

</style>